from django.db import models


# Create your models here.
class LPRRecords(models.Model):
    id = models.AutoField(primary_key=True)
    year = models.CharField(max_length=10)
    rate = models.CharField(max_length=10)
    upload_time = models.DateField()


class CurrencyExchangeRateRecords(models.Model):
    id = models.AutoField(primary_key=True)
    data = models.JSONField()
    upload_time = models.DateField()


class WallPaper(models.Model):
    id = models.AutoField(primary_key=True)
    FocalLength = models.CharField(max_length=100)
    aperture = models.CharField(max_length=100)
    author = models.CharField(max_length=100)
    camera = models.CharField(max_length=100)
    downloads = models.IntegerField()
    format = models.CharField(max_length=100)
    iso = models.CharField(max_length=100)
    likes = models.IntegerField()
    size = models.CharField(max_length=100)
    tags = models.CharField(max_length=500)
    time = models.CharField(max_length=500)
    views = models.IntegerField()
    from_web = models.CharField(max_length=500)
    uploadTime = models.DateField()
    color = models.CharField(max_length=500)
    address = models.CharField(max_length=500)
    status = models.CharField(max_length=10)
    updateBatch = models.CharField(max_length=10)
    info = models.CharField(max_length=1000)
    title = models.CharField(max_length=1000)
    catalogue = models.CharField(max_length=500,default="")
    file = models.FileField(upload_to='media\WallPapers\original')

